CC = g++
CFLAGS = -Wall
PROG = openbridgebuilder
PROG_DEBUG = $(PROG)_debug
MY_MAIN = main
MY_GUI = GUI
MY_SKETCH = Scene

LIBS = -lglut

all: $(PROG)

Debug:$(PROG_DEBUG)
Release:$(PROG)
cleanDebug:clean
cleanRelease:clean
Distcleandebug:$(PROG)
Distcleanrelease:$(PROG)

$(PROG): $(MY_MAIN).cpp $(MY_GUI).o
	$(CC) $(CFLAGS) $(MY_GUI).o $(MY_MAIN).cpp $(LIBS) -o $(PROG)

$(MY_GUI).o: $(MY_GUI).cpp $(MY_GUI).h
	$(CC) $(CFLAGS) $(MY_GUI).h $(MY_GUI).cpp -c

$(PROG_DEBUG): $(MY_MAIN).cpp $(MY_GUI).o
	$(CC) -g $(CFLAGS) $(MY_GUI).o $(MY_MAIN).cpp $(LIBS) -o $(PROG)

clean:
	rm -f $(PROG) $(MY_GUI).o
